package io.gitee.kenewstar.dbmq;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author kenewstar
 */
@ConfigurationProperties(prefix = "db-mq")
public class DbMqConfigProperties {

    private String type = "mysql";
    private int heartbeatInterval = 120000;
    private int period = 1000;


    public int getHeartbeatInterval() {
        return heartbeatInterval;
    }

    public void setHeartbeatInterval(int heartbeatInterval) {
        this.heartbeatInterval = heartbeatInterval;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getPeriod() {
        return period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }
}
